[#escape x as (x)!?html]
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>${title}_${node.name}_${site.name}${global.customs['poweredby']}</title>
<link href="_files/global.css" rel="stylesheet"/>
<link href="_files/style.css" rel="stylesheet"/>
<link href="_files/css.css" rel="stylesheet"/>
<link href="_files/fuchuang.css" rel="stylesheet"/>
[#include 'inc_js.html'/]

<script type="text/javascript">
	$(function(){
		$("#news-text").find("table").each(function(){
			$(this).css("margin","auto");
		});
	});
	
</script>
</head>

<body>
  <div class="top-bg-01">
    <div id="main"> 
         [#include 'inc_header.html'/]
      <div class="lianjie-index">
      你当前的位置： [#list node.hierarchy as n]<a href="${n.url}" class="a c-desc">${n.name}</a> > [/#list]正文
      </div>
      <div class="main-main">
       <div class="news-chainning">
        <div class="news-chainning-title">
         <p>[#noescape]${bbcode(title)}[/#noescape]</p>
         <table>
          <tr>
          [#if info.sourceUrl??]
			 <td class="infr-from"><a href="${info.sourceUrl}" target="_blank" class="a-hover c-666">信息来源：${info.source}</a></td>
			[#else]
			 <td class="infr-from">信息来源：${info.source}</td>	
			[/#if]
           <td class="read">阅读次数：
           	<span id="info_views"></span>
           	</td>
			<script type="text/javascript">
				$("#info_views").load("${dy}/info_views/${info.id}.htmx?d="+new Date()*1);
			</script>
           <td class="fabu-time">发布日期：${info.publishDate?string('yyyy-MM-dd')}</td>
<!--            <td class="fabu-time">发布日期：${info.publishDate?string('yyyy-MM-dd HH:mm')}</td> -->
          </tr>
         </table>
        </div>
        <div class="news-text" id="news-text">
        [#noescape]${text}[/#noescape]
       </div>
       
      </div>
      <table class="center mt20"><tr><td>
			[#if pagedList.totalPages>1]
				[#include 'page.html'/]
			[/#if]
		</td></tr></table>
		<table class="center mt20"><tr><td>
			<script type="text/javascript">
				function infoScoring(id,itemId) {
					$.post('${dy}/info_scoring.htmx',{id:id,itemId:itemId},function(data) {
						if(data!="0"){$("#score-item-"+itemId).text(data);}else{alert("你已经表达过心情了！");}
					});
				}
			</script>
			[@ScoreGroup number='mood';sg]
			[#if sg??]
			<ul class="score-mood">
				[#list sg.items as item]
				<li class="mood-item" onclick="infoScoring(${info.id},${item.id});">
					<div class="item-count"><span id="score-item-${item.id}">0</span>人</div>
					<div class="item-img"><img src="${item.iconUrl}"/></div>
					<div class="item-name">${item.name}</div>
				</li>
				[/#list]
				<div class="clear"></div>
			</ul>
			[/#if]
			[/@ScoreGroup]
			<script type="text/javascript">
				$.get("${dy}/info_score/${info.id}.htmx?d="+new Date()*1,function(data) {
					for(id in data){$("#score-item-"+id).text(data[id]);}
				},"json");
			</script>
		</td></tr></table>
      <div class="clearboth"></div>
    </div>
	[#include 'inc_footer.html'/]
    </div>
   </div>
</div>
</body>
</html>
[/#escape]